import VueRouter from "vue-router";

import Login from "@/components/Login/Login";

import Main from "@/views/Main/Main";

import JsonView from "@/views/JsonView/JsonView";

export default new VueRouter({
  routes: [
    {
      name: "登录",
      path: "/login",
      component: Login,
    },
    {
      name: "主页",
      path: "/index",
      redirect: "/jsonv",
      component: Main,
      children: [
        {
          name: "json数据编辑页面",
          path: "/jsonv",
          component: JsonView,
        },
      ],
    },
  ],
});
